<template>
  <div class="p-20 fs-10">测试页面</div>
  <div>
    <input type="text" v-model="result.message" />
    {{ a }} - {{ result }}
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
// 导入类型
import type { BaseResult, PageBean } from '@/types/BaseResult'
import { Tools } from '@/types/Tools'
import { useMessage } from 'naive-ui'
const message = useMessage()

message.error('错误信息')

const result = ref({} as BaseResult)

const a: string = 'ddd'

result.value.message = '1'

const page = { pageNumber: 1, pageSize: 10 } as PageBean
const info = { id: 1, name: 'abcd' }
console.log('合并json对象的结果：', Tools.concatJson(page, info))
</script>
<style scoped></style>
